package com.lrkj.payfee.service.impl;

import java.util.List;

import com.lrkj.payfee.domain.FavouredConf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lrkj.payfee.mapper.FavouredNormMapper;
import com.lrkj.payfee.domain.FavouredNorm;
import com.lrkj.payfee.service.IFavouredNormService;

/**
 * 优惠政策收费标准中间Service业务层处理
 *
 * @author yajun_ren
 * @date 2021-08-14
 */
@Service
public class FavouredNormServiceImpl implements IFavouredNormService
{
    @Autowired
    private FavouredNormMapper favouredNormMapper;

    /**
     * 查询优惠政策收费标准中间
     *
     * @param favouredPolicyId 优惠政策收费标准中间ID
     * @return 优惠政策收费标准中间
     */
    @Override
    public FavouredNorm selectFavouredNormById(String favouredPolicyId)
    {
        return favouredNormMapper.selectFavouredNormById(favouredPolicyId);
    }

    /**
     * 查询优惠政策收费标准中间列表
     *
     * @param favouredNorm 优惠政策收费标准中间
     * @return 优惠政策收费标准中间
     */
    @Override
    public List<FavouredNorm> selectFavouredNormList(FavouredNorm favouredNorm)
    {
        return favouredNormMapper.selectFavouredNormList(favouredNorm);
    }

    /**
     * 新增优惠政策收费标准中间
     *
     * @param favouredNorm 优惠政策收费标准中间
     * @return 结果
     */
    @Override
    public int insertFavouredNorm(FavouredNorm favouredNorm)
    {
        return favouredNormMapper.insertFavouredNorm(favouredNorm);
    }

    /**
     * 修改优惠政策收费标准中间
     *
     * @param favouredNorm 优惠政策收费标准中间
     * @return 结果
     */
    @Override
    public int updateFavouredNorm(FavouredNorm favouredNorm)
    {
        return favouredNormMapper.updateFavouredNorm(favouredNorm);
    }

    /**
     * 批量删除优惠政策收费标准中间
     *
     * @param favouredPolicyIds 需要删除的优惠政策收费标准中间ID
     * @return 结果
     */
    @Override
    public int deleteFavouredNormByIds(String[] favouredPolicyIds)
    {
        return favouredNormMapper.deleteFavouredNormByIds(favouredPolicyIds);
    }

    /**
     * 删除优惠政策收费标准中间信息
     *
     * @param favouredPolicyId 优惠政策收费标准中间ID
     * @return 结果
     */
    @Override
    public int deleteFavouredNormById(String favouredPolicyId)
    {
        return favouredNormMapper.deleteFavouredNormById(favouredPolicyId);
    }

    @Override
    public int doSaveList(List<FavouredNorm> batchBean) {
        return favouredNormMapper.doSaveList(batchBean);
    }
}
